define(
   [
      'dojo/_base/declare',
      'dojo/_base/lang',
      'dojo/dom-style',
      'dijit/Dialog'
   ],
   function(declare, lang, domStyle, Dialog)
   {
      return declare([Dialog],
      {
         postCreate: function()
         {
            this.inherited(arguments);
            domStyle.set(this.domNode, 'background-color', 'white');
         },
         onHide: function()
         {
            setTimeout(lang.hitch(this, function(){
               this.destroyRecursive();
            }), 50);
         }
      });
   }
);
